package com.zudada.servermain.mapper;


import com.zudada.servermain.POJO.entity.PortUser;
import com.zudada.servermain.POJO.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface LoginMapper   {


    @Select("select * from port_user where username = #{username}")
    PortUser getByUsername(String username);

    @Select("SELECT * FROM user WHERE user_id = #{userId}")
    User getByUserId(String userId);
}